package com.kehutong.applet.entity;

import org.coraframework.bean.valid.CheckField;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

/**
 * @program: kht
 * @description: 菜单页面
 * @author: joneron
 * @create: 2021/5/24
 **/
@Table(value="t_applet_menu_page", comment="小程序菜单页面管理",idType = IDType.TIMESTAMP)
public class AppletMenuPageEntity extends Entity {

    private static final long serialVersionUID = 3962223983142854177L;

    protected AppletMenuPageEntity(String id) {
        super(id);
    }

    @CheckField("所属模块不能为空")
    @Column(comment="小程序菜单id")
    private String appletMenuId;

    @CheckField("页面标题不能为空")
    @Column(comment="页面标题")
    private String pageTitle;

    @CheckField("页面地址不能为空")
    @Column(comment="页面地址")
    private String pageUrl;

    @Column(comment="排序值")
    private Integer sortNum;

    @Column(comment="创建人")
    private String createName;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    public String getAppletMenuId() {
        return appletMenuId;
    }

    public void setAppletMenuId(String appletMenuId) {
        this.appletMenuId = appletMenuId;
    }

    public String getPageTitle() {
        return pageTitle;
    }

    public void setPageTitle(String pageTitle) {
        this.pageTitle = pageTitle;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }
}
